import request from '../utils/request'

// 发送验证码
export const getCode = (data) => {
    return request.post('/pz/getCode',data)
}

// 登陆
export const login = (data) => {
    return request.post('/pz/login',data)
}

// 获取菜单
export const getMenuList = (data) => {
    return request.get('/v3pz/menu/available_list',data)
};

// 设置菜单
export const setMenu = (data) => {
    return request.post('/v3pz/menu/set',data)
}

// 菜单权限列表 params 是分页参数
export const userMenuList = (params) => {
    return request.get('/v3pz/menu/userMenu',{params})
}

